import * as THREE from 'three';
import {Reflector} from 'three/examples/jsm/objects/Reflector'
import material from '@/materials/ironMaterials'

const geometry = new THREE.PlaneGeometry( 50, 32);

// 立方体网格模型
var boxMesh = new Reflector(geometry, material);
boxMesh.castShadow = true;
boxMesh.receiveShadow = false;

// 立方体几何体box作为EdgesGeometry参数创建一个新的几何体
var edges = new THREE.EdgesGeometry(geometry);
// 立方体线框，不显示中间的斜线
var edgesMaterial = new THREE.LineBasicMaterial({
  color: 0xffffff
})
var line = new THREE.LineSegments(edges,edgesMaterial);

boxMesh.position.set(50,0,-25)
boxMesh.rotation.y = -Math.PI/2
line.position.set(50,25,-25)






export default {
    boxMesh,
    line
}